package com.kelvin.oocl.dataprocess.entity;

import java.util.Date;

import com.kelvin.oocl.dataprocess.util.DateUtil;

public class Customer {
	private String id;
	private String name;
	private String email;
	private boolean sex;
	private Date birthDate;
	public Customer(String id, String name, String email, boolean sex,
			Date birthDate) {
		super();
		this.id = id;
		this.name = name;
		this.email = email;
		this.sex = sex;
		this.birthDate = birthDate;
	}
	
	public Customer() {
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public boolean isSex() {
		return sex;
	}
	public void setSex(boolean sex) {
		this.sex = sex;
	}
	public Date getBirthDate() {
		return birthDate;
	}
	public void setBirthDate(Date birthDate) {
		this.birthDate = birthDate;
	}
	@Override
	public String toString() {
		return "Customer [id=" + id + ", name=" + name + ", email=" + email
				+ ", sex=" + (sex==true ? "男":"女") + ", birthDate=" + DateUtil.dateToStr(birthDate, "yyyy-MM-dd") + "]";
	}
	
	
}
